package com.xbe.equipment.domain;

import com.xbe.common.annotation.Excel;
import com.xbe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备管理对象 equipment
 *
 * @author liuzhiting
 * @date 2020-06-19
 */
public class Equipment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    private String userName;

    /**
     * sim卡号
     */
    @Excel(name = "sim卡号")
    private String sim;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String name;

    /**
     * 经度
     */
    private String lng;

    /**
     * 纬度
     */
    private String lat;

    /**
     * 雷达限速
     */
    @Excel(name = "雷达限速")
    private String speedLimit;

    /**
     * 电池电压
     */
    @Excel(name = "电池电压")
    private String voltage;

    /**
     * 工作模式
     */
    @Excel(name = "工作模式")
    private String workPattern;

    /**
     * 子工作模式
     */
    @Excel(name = "子工作模式")
    private String workSubPattern;

    /**
     * 时间模式
     */
    @Excel(name = "时间模式")
    private String timePattern;

    /**
     * 开始时间
     */
    private String startTime;

    /**
     * 结束时间
     */
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String endTime;

    /**
     * 亮度
     */
    private Integer brightness;

    /**
     * 频率
     */
    private String frequency;

    /**
     * 尾迹
     */
    private Integer wake;

    /**
     * 道路id
     */
    private Integer roadId;

    /**
     * 道路id
     */
    private String roadName;

    /**
     * 状态(0在线 1 离线)
     */
    @Excel(name = "状态(0在线  1 离线)")
    private String state;

    /**
     * 能见度
     */
    @Excel(name = "能见度")
    private String visibility;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setSim(String sim)
    {
        this.sim = sim;
    }

    public String getSim()
    {
        return sim;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setLongitude(String lng)
    {
        this.lng = lng;
    }

    public String getLongitude()
    {
        return lng;
    }

    public void setLatitude(String lat)
    {
        this.lat = lat;
    }

    public String getLatitude()
    {
        return lat;
    }

    public void setSpeedLimit(String speedLimit)
    {
        this.speedLimit = speedLimit;
    }

    public String getSpeedLimit()
    {
        return speedLimit;
    }

    public void setVoltage(String voltage)
    {
        this.voltage = voltage;
    }

    public String getVoltage()
    {
        return voltage;
    }

    public void setWorkPattern(String workPattern)
    {
        this.workPattern = workPattern;
    }

    public String getWorkPattern()
    {
        return workPattern;
    }

    public void setWorkSubPattern(String workSubPattern)
    {
        this.workSubPattern = workSubPattern;
    }

    public String getWorkSubPattern()
    {
        return workSubPattern;
    }

    public void setTimePattern(String timePattern)
    {
        this.timePattern = timePattern;
    }

    public String getTimePattern()
    {
        return timePattern;
    }

    public String getStartTime()
    {
        return startTime;
    }

    public void setStartTime(String startTime)
    {
        this.startTime = startTime;
    }

    public String getEndTime()
    {
        return endTime;
    }

    public void setEndTime(String endTime)
    {
        this.endTime = endTime;
    }

    public void setBrightness(Integer brightness)
    {
        this.brightness = brightness;
    }

    public Integer getBrightness()
    {
        return brightness;
    }

    public void setFrequency(String frequency)
    {
        this.frequency = frequency;
    }

    public String getFrequency()
    {
        return frequency;
    }

    public void setWake(Integer wake)
    {
        this.wake = wake;
    }

    public Integer getWake()
    {
        return wake;
    }

    public void setRoadId(Integer roadId)
    {
        this.roadId = roadId;
    }

    public Integer getRoadId()
    {
        return roadId;
    }

    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }

    public void setVisibility(String visibility)
    {
        this.visibility = visibility;
    }

    public String getVisibility()
    {
        return visibility;
    }

    public String getLng()
    {
        return lng;
    }

    public void setLng(String lng)
    {
        this.lng = lng;
    }

    public String getLat()
    {
        return lat;
    }

    public void setLat(String lat)
    {
        this.lat = lat;
    }

    public String getRoadName()
    {
        return roadName;
    }

    public void setRoadName(String roadName)
    {
        this.roadName = roadName;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    @Override
    public String toString()
    {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("userId", getUserId()).append("sim", getSim()).append("name", getName()).append("longitude", getLongitude()).append("latitude", getLatitude()).append("speedLimit", getSpeedLimit()).append("voltage", getVoltage()).append("workPattern", getWorkPattern()).append("workSubPattern", getWorkSubPattern()).append("timePattern", getTimePattern()).append("startTime", getStartTime()).append("endTime", getEndTime()).append("brightness", getBrightness()).append("frequency", getFrequency()).append("wake", getWake()).append("roadId", getRoadId()).append("state", getState()).append("updateTime", getUpdateTime()).append("visibility", getVisibility()).append("roadName", getRoadName()).toString();
    }
}
